package com.yuanqi.java.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;

@Data
public class PurchaseReturnOrderItemDTO {
    /**
     * 关联原采购订单商品子表ID
     */
    @NotNull(message = "原采购订单商品ID不能为空")
    private Long orderItemId;
    /**
     * 退货数量
     */
    @NotNull(message = "退货数量不能为空")
    @Positive(message = "退货数量必须大于0")
    private Integer returnQuantity;

    /**
     * 退货单价
     */
    @NotNull(message = "退货单价不能为空")
    @Positive(message = "退货单价必须大于0")
    private BigDecimal returnPrice;

    /**
     * 退货原因
     */
    private String reason;
}
